package com.wzy.springbootdemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//开启spring自动配置
@SpringBootApplication
@MapperScan(basePackages="com.wzy.springbootdemo.mapper")
@EnableTransactionManagement //开启事务支持
public class SpringbootdemoApplication {

    public static void main(String[] args) {
        //启动springboot程序，启动spring容器，启动内嵌的Tomcat
        SpringApplication.run(SpringbootdemoApplication.class, args);
    }

}

